<?php
namespace app\adminapi\logic\setting\system;

use app\common\logic\BaseLogic;
use Shopwwi\LaravelCache\Cache;

/**
 * 系统缓存逻辑
 * Class CacheLogic
 * @package app\adminapi\logic\setting\system
 */
class CacheLogic extends BaseLogic
{
    /**
     * @notes 清楚系统缓存
     */
    public static function clear()
    {
        Cache::flush();
        del_target_dir(base_path() . '/runtime/file', true);
    }
}